<?php
 
class Zend_View_Helper_Consists extends Zend_View_Helper_Abstract {

    public function consists(array $needle, $key, $value) {

        foreach($needle as $item) {
            if($item[$key] == $value) {
                return true;
            }
        }
        
        return false;
    }

}
